from selenium import webdriver
from lxml import etree
from time import sleep
bro = webdriver.Chrome(executable_path="./chromedriver")

bro.get('https://qzone.qq.com/')

bro.switch_to.frame('login_frame')

a_tag = bro.find_element_by_id('switcher_plogin')
a_tag.click()

userNmae_tag = bro.find_element_by_id('u')
passWord_tag = bro.find_element_by_id('p')
sleep(1)
userNmae_tag.send_keys('568394971')
sleep(1)
passWord_tag.send_keys('*********')
sleep(1)
btn = bro.find_element_by_id('login_button')
btn.click()

sleep(3)

bro.quit()